import _thread
import time
import urllib.request


def tender(postData):
	url = "http://172.16.40.70:8008/ajax/borrows/tender"
	data = urllib.parse.urlencode(postData).encode(encoding='UTF8')
	response = urllib.request.urlopen(url,data)
	print(response)
for i in range(2):
	tender_data = {"action":"ed6495f7e3acf7e2658bed82c1bc4d7b","transfer_id":"2","card_type":1,"money_num":500,"pwd":"123456","user_id":"2018020625","sort":i}
	print(i)
	tender(tender_data)